#include <iostream>
using namespace std;
#define SWAP_AB2 1
void Swap_AB1(int &a,int &b)
{
	int temp =a;
	a=b;
	b=temp;
}
void Swap_AB2(int *a,int *b)
{
	int temp = *a;
	*a=*b;
	*b=temp;
}
int main()
{
	int a,b;
	cout<<"Enter a&&b @> ";
	cin>>a>>b;
#ifdef SWAP_AB1
	Swap_AB1(a,b);
	cout<<"Swap_AB1: a="<<a<<" b="<<b<<endl;
#endif
#ifdef SWAP_AB2
	Swap_AB2(&a,&b);
	cout<<"Swap_AB2: a="<<a<<" b="<<b<<endl;
#endif
	return 0;
}
